<T:ViewBase x:Class="WPFExcelReport.TFSAMVP02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAVAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAVAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAFARBE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAFARBE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAGROE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAGROE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAAUFM:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAAUFM}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAVERP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAVERP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSAAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSAAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSANEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSAMVP.FSANEUB}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsFSAMVP,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwFSAMVP}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwFSAMVP, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="FSAMANDANT"
                                    Binding="{Binding Path=FSAMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAART"
                                    Binding="{Binding Path=FSAART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAVAR"
                                    Binding="{Binding Path=FSAVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAFARBE"
                                    Binding="{Binding Path=FSAFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAGROE"
                                    Binding="{Binding Path=FSAGROE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAGROE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAAUFM"
                                    Binding="{Binding Path=FSAAUFM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAAUFM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAVERP"
                                    Binding="{Binding Path=FSAVERP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAVERP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAAENZL"
                                    Binding="{Binding Path=FSAAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAAENB"
                                    Binding="{Binding Path=FSAAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAAEND"
                                    Binding="{Binding Path=FSAAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSANEUB"
                                    Binding="{Binding Path=FSANEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSANEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSANEUD"
                                    Binding="{Binding Path=FSANEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSANEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAKUNDNR"
                                    Binding="{Binding Path=FSAKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSALAENGE"
                                    Binding="{Binding Path=FSALAENGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSALAENGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSABREITE"
                                    Binding="{Binding Path=FSABREITE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSABREITE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAHOEHE"
                                    Binding="{Binding Path=FSAHOEHE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAHOEHE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSALBHME"
                                    Binding="{Binding Path=FSALBHME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSALBHME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSALBHGRP"
                                    Binding="{Binding Path=FSALBHGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSALBHGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSALBHFKT"
                                    Binding="{Binding Path=FSALBHFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSALBHFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAGEWZU"
                                    Binding="{Binding Path=FSAGEWZU, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAGEWZU}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAVPIVP"
                                    Binding="{Binding Path=FSAVPIVP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAVPIVP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAENTSKL1"
                                    Binding="{Binding Path=FSAENTSKL1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAENTSKL1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAANTPR1"
                                    Binding="{Binding Path=FSAANTPR1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAANTPR1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAENTSKL2"
                                    Binding="{Binding Path=FSAENTSKL2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAENTSKL2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAANTPR2"
                                    Binding="{Binding Path=FSAANTPR2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAANTPR2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAENTSKL3"
                                    Binding="{Binding Path=FSAENTSKL3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAENTSKL3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAANTPR3"
                                    Binding="{Binding Path=FSAANTPR3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAANTPR3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAENTSKL4"
                                    Binding="{Binding Path=FSAENTSKL4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAENTSKL4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAANTPR4"
                                    Binding="{Binding Path=FSAANTPR4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAANTPR4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAENTSKL5"
                                    Binding="{Binding Path=FSAENTSKL5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAENTSKL5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAANTPR5"
                                    Binding="{Binding Path=FSAANTPR5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAANTPR5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAETIKETT1"
                                    Binding="{Binding Path=FSAETIKETT1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAETIKETT1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAETIKETT2"
                                    Binding="{Binding Path=FSAETIKETT2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAETIKETT2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAETIKETT3"
                                    Binding="{Binding Path=FSAETIKETT3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAETIKETT3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAPRGRP"
                                    Binding="{Binding Path=FSAPRGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAPRGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAANZVP"
                                    Binding="{Binding Path=FSAANZVP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAANZVP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAZUABVH"
                                    Binding="{Binding Path=FSAZUABVH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAZUABVH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAZUABAK"
                                    Binding="{Binding Path=FSAZUABAK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAZUABAK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAZUABKU"
                                    Binding="{Binding Path=FSAZUABKU, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAZUABKU}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAZUABPR"
                                    Binding="{Binding Path=FSAZUABPR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAZUABPR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSAFILLER"
                                    Binding="{Binding Path=FSAFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSAFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
